
/* 项目 */
var galleryTop = new Swiper('.gallery-top', {
    nextButton: '.swiper-button-next',
    prevButton: '.swiper-button-prev',
    spaceBetween: 10,
});
var galleryThumbs = new Swiper('.gallery-thumbs', {
    spaceBetween: 10,
    centeredSlides: true,
    slidesPerView: 'auto',
    touchRatio: 0.2,
    slideToClickedSlide: true
});
galleryTop.params.control = galleryThumbs;
galleryThumbs.params.control = galleryTop;

/* 新闻 */
var news = new Swiper ('.news .swiper-container', {
    direction: 'horizontal',//滑动方向（horizontal:水平 vertical:垂直）
    loop: true,
    autoplay:5000,//自动切换的时间间隔
    autoplayDisableOnInteraction:false,//用户操作后是否禁止autoplay,默认为true，停止
    speed:500,//滑动速度
    grabCursor:true,//鼠标指针形状
    //pagination: '.news .swiper-pagination',// 分页器
    nextButton: '.swiper-button-next',
    prevButton: '.swiper-button-prev',
});/**
 * Created by Administrator on 2017/6/19.
 */
